         self.tableView.dataSource = self
         self.tableView.delegate = self
         self.tableView.frame.size = self.view.frame.size
-        self.tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "cell")
+        self.tableView.registerClass(MealCell.self, forCellReuseIdentifier: "cell")
         self.view.addSubview(self.tableView)
 
         self.loadMeals()


    func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
        let meal = self.meals[indexPath.section]
        let text: String

        if indexPath.row == 0 {
            text = "점심: " + meal.lunch.joinWithSeparator(", ")
        } else {
            text = "저녁: " + meal.dinner.joinWithSeparator(", ")
        }

        let size = CGSize(width: tableView.frame.width - 30, height: .max)
        let rect = text.boundingRectWithSize(size,
            options: [.UsesLineFragmentOrigin, .UsesFontLeading],
            attributes: [NSFontAttributeName: UIFont.systemFontOfSize(17)],
            context: nil
        )
        return ceil(rect.height) + 20
    }

}

    }

    func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("cell") as! MealCell
        let meal = self.meals[indexPath.section]
        if indexPath.row == 0 {
            cell.titleLabel.text = "점심"
            cell.contentLabel.text = meal.lunch.joinWithSeparator(", ")
        } else {
            cell.titleLabel.text = "저녁"
            cell.contentLabel.text = meal.dinner.joinWithSeparator(", ")
        }
        return cell
    }
