 
 class ChecklistViewController: UITableViewController, ItemDetailViewControllerDelegate {
   
-//   var checklistItems = [ChecklistItem]()
   var checklist: Checklist!
-  
-  required init?(coder aDecoder: NSCoder) {
-    checklist.checklistItems = [ChecklistItem]()
-    super.init(coder: aDecoder)
-    // print("Data file path is \(dataFilePath())")
-    loadChecklistItems()
-  }
-  
-  func loadChecklistItems() {
-    let path = dataFilePath()
-    if NSFileManager.defaultManager().fileExistsAtPath(path) {
-      if let data = NSData(contentsOfFile: path) {
-        let unarchiver = NSKeyedUnarchiver(forReadingWithData: data)
-        checklist.checklistItems = unarchiver.decodeObjectForKey("ChecklistItems") as! [ChecklistItem]
-        unarchiver.finishDecoding()
-      }
-    }
-    
-  }
-  
+
   // MARK: Delegate protocol implementations
   
   func itemDetailViewControllerDidCancel(controller: ItemDetailViewController) {

    archiver.finishEncoding()
    data.writeToFile(dataFilePath(), atomically: true)
  }


}

    tableView.insertRowsAtIndexPaths(indexPaths, withRowAnimation: .Automatic)
    
    dismissViewControllerAnimated(true, completion: nil)
  }
  
  func itemDetailViewController(controller: ItemDetailViewController, didFinishEditingItem checklistItem: ChecklistItem) {
