title: swift compiler shows Expected declaration error?
body: <p>When this code is written in <code>AllListViewController</code> and run, the compiler shows the Expected Declaration error:</p>
  
  <pre><code>for list in lists{
      let item = ChecklistItems()
      item.text = "Item for \(list.name))"
      list.items.append(item)
  }       
  </code></pre>