         // Dispose of any resources that can be recreated.
     }
     
-    func handleAdd(button: UIButton) {
+    func handleAdd(button: UIBarButtonItem) {
         let allowedChars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
         let allowedCharsCount = UInt32(allowedChars.characters.count)
         var randomString = ""

        Cd.transact {
            let newItem = Cd.create(ExampleItem.self)
            newItem.name = randomString
            try! Cd.commit()
        }
    }
    

        
        fetchedResultsController?.automateDelegation(forTable: self.tableView)
        try! fetchedResultsController?.performFetch()
        
    }

    override func didReceiveMemoryWarning() {
