     }
     
 }
+
+extension ViewController:  CZPickerViewDelegate, CZPickerViewDataSource {
+    
+    func numberOfRowsInPickerView(pickerView: CZPickerView!) -> Int {
+        return roomTypeNames.count
+    }
+    
+    func czpickerView(pickerView: CZPickerView!, titleForRow row: Int) -> String! {
+        
+        return "\(roomTypeNames[row])"
+    }
+    
+    func czpickerView(pickerView: CZPickerView!, didConfirmWithItemAtRow row: Int){
+        
+        buildingTF.text = roomTypeNames[row] as String
+        
+        let query = PFQuery(className: "RoomType")
+        query.whereKey("name", equalTo: buildingTF.text!)
+        query.findObjectsInBackgroundWithBlock {
+            (objects: [PFObject]?, error: NSError?) -> Void in
+            
+            if error == nil {
+                
+                if let object = objects {
+                    
+                    existingRT.removeAll()
+                    existingRT = Array(object.generate())
+                    for objects in existingRT {
+                        
+                        self.buildingTF.text = objects["description"] as? String
+                        
+                    }
+                    print(existingRT)
+                }
+            }
+        }
+    }
+}
    func loadRoomTypes() {
        
        let query = PFQuery(className: "RoomType")
        //query.whereKey("name", equalTo: "Queen")
        query.findObjectsInBackgroundWithBlock {
            (objects: [PFObject]?, error: NSError?) -> Void in
            

        picker.show()
    }
    
    //MARK: Load room facilities
    func loadRoomFacilities() {
        
