     // Private methods
     //
     
-    func configureCell(cell: UITableViewCell, indexPath: NSIndexPath) {
-        
-        let toDo = toDosController.objectAtIndexPath(indexPath) as ToDo
+    func configureCell(cell: UITableViewCell, toDo: ToDo) {
         cell.textLabel.text = toDo.title
     }
     

        switch type {
        case .Insert:
            sectionsBeingAdded.append(sectionIndex)
            tableView.deleteSections(NSIndexSet(index: sectionIndex), withRowAnimation: .Fade)
        case .Delete:
            sectionsBeingRemoved.append(sectionIndex)
            self.tableView.deleteSections(NSIndexSet(index: sectionIndex), withRowAnimation: .Fade)

        tableView.deselectRowAtIndexPath(indexPath, animated: true)
        
        let toDo = toDosController.objectAtIndexPath(indexPath) as ToDo
        toDo.edit() { $0.done = !$0.done.boolValue }
        toDo.managedObjectContext.save(nil)
    }
