 extension ViewController: UITableViewDataSource {
   func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
     var cell = tableView.dequeueReusableCellWithIdentifier("Cell") as UITableViewCell
+    var foodName: String
+    if self.searchController.active {
+      foodName = filteredSuggestedSearchFoods[indexPath.row]
+    } else {
+      foodName = suggestedSearchFoods[indexPath.row]
+    }
+    cell.textLabel?.text = foodName
+    cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
     return cell
   }
   
   func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
-    return 0
+    if self.searchController.active {
+      return self.filteredSuggestedSearchFoods.count
+    } else {
+      return self.suggestedSearchFoods.count
+    }
   }
 }
 

  @IBOutlet weak var tableView: UITableView!
  
  var searchController: UISearchController!
  
  override func viewDidLoad() {
    super.viewDidLoad()

    
    // ensure the search results controller is presented inside the view controller
    self.definesPresentationContext = true
    
    self.suggestedSearchFoods = ["apple", "bagel", "banana", "beer", "bread", "carrots", "cheddar cheese", "chicen breast", "chili with beans", "chocolate chip cookie", "coffee", "cola", "corn", "egg", "graham cracker", "granola bar", "green beans", "ground beef patty", "hot dog", "ice cream", "jelly doughnut", "ketchup", "milk", "mixed nuts", "mustard", "oatmeal", "orange juice", "peanut butter", "pizza", "pork chop", "potato", "potato chips", "pretzels", "raisins", "ranch salad dressing", "red wine", "rice", "salsa", "shrimp", "spaghetti", "spaghetti sauce", "tuna", "white wine", "yellow cake"]
  }
  
  override func didReceiveMemoryWarning() {
