 
 class ChecklistViewController: UITableViewController {
   
-  var row0item: ChecklistItem
-  var row1item: ChecklistItem
-  var row2item: ChecklistItem
-  var row3item: ChecklistItem
-  var row4item: ChecklistItem
+  var checkListItems = [ChecklistItem]()
   
   required init?(coder aDecoder: NSCoder) {
-    row0item = ChecklistItem()
+    let row0item = ChecklistItem()
     row0item.text = "Walk the fish."
     row0item.checked = false
+    checkListItems.append(row0item)
 
-    row1item = ChecklistItem()
+    let row1item = ChecklistItem()
     row1item.text = "Massage my neck."
     row1item.checked = false
+    checkListItems.append(row0item)
     
-    row2item = ChecklistItem()
+    let row2item = ChecklistItem()
     row2item.text = "Learn singing."
     row2item.checked = false
+    checkListItems.append(row0item)
     
-    row3item = ChecklistItem()
+    let row3item = ChecklistItem()
     row3item.text = "ASMR practice."
     row3item.checked = false
+    checkListItems.append(row0item)
     
-    row4item = ChecklistItem()
+    let row4item = ChecklistItem()
     row4item.text = "Eat File Wellington."
     row4item.checked = false
+    checkListItems.append(row0item)
     
     super.init(coder: aDecoder)
     

  
  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let cell = tableView.dequeueReusableCellWithIdentifier("ChecklistItem", forIndexPath: indexPath)
    let label = cell.viewWithTag(1000) as? UILabel
    
  switch indexPath.row % 5 {
  
    case (0):
      label?.text = row0item.text
      
    case (1):
      label?.text = row1item.text
      
    case (2):
      label?.text = row2item.text
      
    case (3):
      label?.text = row3item.text
      
    case (4):
      label?.text = row4item.text
      
    default:
      label?.text = "Check the code."
    
    }
    
    configureCheckmarkForCell(cell, indexPath: indexPath)
    

  
  // MARK: Content related methods
  func configureCheckmarkForCell(cell: UITableViewCell, indexPath: NSIndexPath) {
    let isChecked = checkListItems[indexPath.row].checked
    
    
    if isChecked {
      cell.accessoryType = .Checkmark
