title: tableview populating same string
body: <p>I need to populate my tableview with an array of a custom struct, currently it will only populate the table view of each section with the same array. </p>
  
  <p>Heres where I append...</p>
  
  <pre><code>    let shake = Item(name: "Shake", carbs: 20)
      let fries = Item(name: "Fries", carbs: 30)
      let pie = Item(name: "Pie", carbs: 23)
  
      let beverages = Category(name: "Beverages", items: [shake])
      let chips_fries = Category(name: "Chips &amp; Fries", items: [fries])
      let desserts = Category(name: "Desserts", items: [pie])
      let other = Category(name: "Other Menu Items", items: [])
      let sandwiches_burgers = Category(name: "Sandwiches &amp; Burgers", items: [])
      let sides = Category(name: "Sides", items: [])
  
      a_w = Restaurant(name: "A&amp;W", categories: [beverages, chips_fries, desserts, other, sandwiches_burgers, sides])
  
      restaurants = [a_w]
  </code></pre>
  
  <p>Here's where I try to populate the table view with the array of Items...</p>
  
  <pre><code>   var restaurants = [Restaurant]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      tableView.reloadData()
      // Do any additional setup after loading the view.
  }
  override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
   let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
      let restaurant = restaurants[indexPath.section]
      let category = restaurant.categories[indexPath.section]
      let item = category.items[indexPath.row]
      cell.textLabel!.text = item.name
      return cell
  }
  
  override func numberOfSections(in tableView: UITableView) -&gt; Int {
      return restaurants.count
  }
  override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      let restaurant = restaurants[section].categories[section]
      return restaurant.items.count
  }
  </code></pre>
  
  <p>}</p>
  
  <p>It will only populate each category with "shake".</p>