         
         imagePicker.delegate = self
         
+        ref = FIRDatabase.database().reference()
+        
         NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(keyboardWillShow), name: UIKeyboardWillShowNotification, object: nil)
         NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(keyboardWillHide), name: UIKeyboardWillHideNotification, object: nil)
-        
     }
     
     func keyboardWillShow(notification: NSNotification) {

            alert.addAction(alertAction)
        }
    }
}

    
    @IBOutlet weak var saveNewContact: UIButton!
    
    // Firebase
    var ref: FIRDatabaseReference!
    private var _refHandle: FIRDatabaseHandle!
    
    override func viewDidLoad() {
        super.viewDidLoad()
