         self.session.activateSession()
     }
     
-    @IBAction func ateSmallMeal() {
-        self.createMeal(type: .Small)
-        self.presentHistory()
-    }
-    
-    @IBAction func ateMediumMeal() {
-        self.createMeal(type: .Medium)
-        self.presentHistory()
-    }
-    
-    @IBAction func ateLargeMeal() {
-        self.createMeal(type: .Large)
-        self.presentHistory()
-    }
-
-    @IBAction func seeHistory() {
-        self.presentHistory()
-    }
-    
     override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
         let nc = segue.destinationViewController as! UINavigationController
         if let historyVC = nc.viewControllers.first as? HistoryVC {

class TrackVC: UIViewController, WCSessionDelegate {
    private var dataController: DataController!
    private let session = WCSession.defaultSession()
    
    func setDataController(dataController: DataController) {
        self.dataController = dataController;

            historyVC.setHistory(history)
        }
    }
    
    
    // MARK: - IBActions
    @IBAction private func ateSmallMeal() {
        self.createMeal(type: .Small)
        self.presentHistory()
    }
    
    @IBAction private func ateMediumMeal() {
        self.createMeal(type: .Medium)
        self.presentHistory()
    }
    
    @IBAction private func ateLargeMeal() {
        self.createMeal(type: .Large)
        self.presentHistory()
    }
    
    @IBAction private func seeHistory() {
        self.presentHistory()
    }
    
    

    // MARK: - WCSessionDelegate
