     
     if let cell = tableView.cellForRow(at: indexPath) {
       if indexPath.row == 0 {
-        row0item.checked = !row0item.checked
+        items[0].checked = !items[0].checked
       } else if indexPath.row == 1 {
-        row1item.checked = !row1item.checked
+        items[1].checked = !items[1].checked
       } else if indexPath.row == 2 {
-        row2item.checked = !row2item.checked
+        items[2].checked = !items[2].checked
       } else if indexPath.row == 3 {
-        row3item.checked = !row3item.checked
+        items[3].checked = !items[3].checked
       } else if indexPath.row == 4 {
-        row4item.checked = !row4item.checked
+        items[4].checked = !items[4].checked
       }
      configureCheckmark(for: cell, at: indexPath)
       


class Checklist10ViewController: UITableViewController {
  
  
  
  var row0item: Checklist10Item
  var row1item: Checklist10Item
  var row2item: Checklist10Item
  var row3item: Checklist10Item
  var row4item: Checklist10Item
  
  required init?(coder aDecoder: NSCoder) {
    row0item = Checklist10Item()
    row0item.text = "Walk the dog"
    row0item.checked = false
    row1item = Checklist10Item()
    row1item.text = "Brush my teeth"
    row1item.checked = true
    row2item = Checklist10Item()
    row2item.text = "Learn iOS development"
    row2item.checked = true
    row3item = Checklist10Item()
    row3item.text = "Soccer practice"
    row3item.checked = false
    row4item = Checklist10Item()
    row4item.text = "Eat ice cream"
    row4item.checked = true
    super.init(coder: aDecoder)
  }


    
    if let label = cell.viewWithTag(1000) as! UILabel? {
      if indexPath.row == 0 {
        label.text = items[0].text
      } else if indexPath.row == 1 {
        label.text = items[1].text
      } else if indexPath.row == 2 {
        label.text = items[2].text
      } else if indexPath.row == 3 {
        label.text = items[3].text
      } else if indexPath.row == 4 {
        label.text = items[4].text
      }
    }
    
