         
         // add the message
         addMessage(message)
+        
+        // save to context
+        do {
+            try context.save()
+        } catch {
+            print("Problem Saving to Context.")
+            return
+        }
         
         // reset the new message text field
         newMessageField.text = ""

    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Add a new message area
        let newMessageArea = UIView()
        newMessageArea.backgroundColor = UIColor.lightGrayColor()
        newMessageArea.translatesAutoresizingMaskIntoConstraints = false
        view.addSubview(newMessageArea)
        

    }
    
    
    // MARK: Send Message
    
    func tappedSend(button: UIButton) {
        // Ensure the new message field has some text in it before proceeding
