     let hkStore = HKHealthStore()
     var workouts = [HKWorkout]()
     
+    let refreshControl = UIRefreshControl()
+    
     lazy var dateFormatter:NSDateFormatter = {
         let formatter = NSDateFormatter()
         formatter.timeStyle = .ShortStyle

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        let readTypes = Set([
            HKObjectType.workoutType()

        
        return String(format: "%0.2d:%0.2d:%0.2d",hours,minutes,seconds)
    }
    
    func refresh(refreshControl: UIRefreshControl) {
        self.readWorkOuts({(results: [AnyObject]!, error: NSError!) -> () in
            println("Made It \(results.count)")
            if let workouts = results as? [HKWorkout] {
                self.workouts = workouts
                self.tableView.reloadData()
            }
            
            self.refreshControl.endRefreshing()
        })
    }
}

