         
     }
     
+    //load the table view based off the items array
     func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell{
         
         let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath)

        
    }
    
    func alert(alertTitle: String, alertMessage: String){
        
        let alertController = UIAlertController(title: alertTitle, message:
            alertMessage, preferredStyle: UIAlertControllerStyle.Alert)

        
        personInfo = newInfo!
        
        let dataString = addUnderscores(newItem!)
        
        //if the data that the user inputted is correct
        if (dataString != ""){
        
            items.insert(newItem!, atIndex: 0)
            textField.resignFirstResponder()
            
            textField.text = ""
            tableView.reloadData()
            
            saveCoreVariables()
            
        }
        
    }
    
