     // 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

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


}

// MARK: - TextFieldDelegate

    
    @IBOutlet weak var cancelButton: UIBarButtonItem!
    
    fileprivate var textFields: [TextField] {
        return [nameTextField, formulaTextField, molecularMassTextField, purityTextField]
    }
    
    // MARK: - IBActions
    
    @IBAction func cancelButtonClicked(_ sender: UIBarButtonItem) {
