var meals = [ Meal(name: "eggplant brownie", happiness: 5), Meal(name: "zuccinis muffin", happiness: 3)]
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return meals.count
} override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let row = indexPath.row let meal = meals[ row ]
var cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: nil) cell.textLabel.text = meal.name return cell