         let markButton = cell.viewWithTag(3) as! UIButton
         markButton.accessibilityHint = "\(indexPath.row)"
         markButton.addTarget(self, action: #selector(ViewController.toggleMarkButton(_:)), forControlEvents: UIControlEvents.TouchUpInside)
-        if (self.remindersBackedList.containsEntry(entry.title)) {
+        if (self.remindersBackedList.containsEntry(entry)) {
             markButton.setTitle("Unmark", forState: UIControlState.Normal)
         } else {
             markButton.setTitle("Mark", forState: UIControlState.Normal)


class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {

    struct Entry {
        let title: String
        let detail: String
    }
    
    var entries = Array<Entry>()

        
        let entry = entries[index]
        
        if (self.remindersBackedList.containsEntry(entry)) {
            self.remindersBackedList.removeEntry(entry)
        } else {
            self.remindersBackedList.addEntry(entry, withNotes: entry.detail)
        }
        
        let path = NSIndexPath(forRow: index, inSection: 0)
