     // MARK: - View life cycle
     override func viewDidLoad() {
         super.viewDidLoad()
-        nameTextField.delegate = self
-        formulaTextField.delegate = self
-        molecularMassTextField.delegate = self
-        purityTextField.delegate = self
+        
+        textFields.forEach({
+            $0.delegate = self
+            $0.dividerNormalColor = UIColor.warmOrange()
+        })
         
         // Set up views if editing an existing Compound
         self.title = name

        return (!textField.text!.isEmpty) && (Double(textField.text!) == nil)
    }

    

    
    // MARK: - Navigation

     override func prepare(for segue: UIStoryboardSegue, sender: Any?) {

            purity = Double(purityTextField.text!)!
        }
    }
}

// MARK: - TextFieldDelegate
