 extension CoreDataQuizletTableViewController: NSFetchedResultsControllerDelegate {
     
     func controllerWillChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
+        //about to make updates.  wrapping actions with updates will allow for animation and auto reloading
         self.tableView.beginUpdates()
     }
     

    }
    
    func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) {
        //tableView.endUpdates()
        self.tableView.endUpdates()
        
        //print("About to reload collection view data")
        //self.tableView!.reloadData()
    }
    
    func removeFromSetsToDisplayByID(removeThisSet: QuizletSet) {

                
                print("case insert")
            case .delete:
                //TODO: Delete from table view
                removeFromSetsToDisplayByID(removeThisSet: theQuizletSet)
                tableView.deleteRows(at: [indexPath!], with: UITableViewRowAnimation.automatic)
                print("case delete")
