 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
+    }
   }
 }
 

    
    // ensure the search results controller is presented inside the view controller
    self.definesPresentationContext = true
  }
  
  override func didReceiveMemoryWarning() {

  @IBOutlet weak var tableView: UITableView!
  
  var searchController: UISearchController!
  var suggestedSearchFoods: [String] = []
  var filteredSuggestedSearchFoods: [String] = []
  
  override func viewDidLoad() {
    super.viewDidLoad()
