         
         return renderer
     }
-    
-    override func didReceiveMemoryWarning() {
-        super.didReceiveMemoryWarning()
-    }
-    
+}
+
+// MARK: - Action
+extension BikeAnalysisViewController {
     @IBAction func closeAnalysis(sender: AnyObject) {
         TrackingManager.sharedManager.createTrackingEvent("record_result", action: "select_close_in_record_result")
         if isFromTable{

        gradient.frame = self.view.frame
        gradient.colors = [topGradient, bottomGradient]
        self.view.layer.insertSublayer(gradient, atIndex: 0)
        
    }
    
    func mapRegion() -> MKCoordinateRegion {
        let initialLoc = routes.first!
        

        
        let calStr = Int(weight * distance * 0.001 * 1.036)
        caloriesLabel.text = String(calStr) + " kcal"
    }
    
    func setupBackground() {
        self.view.backgroundColor = UIColor.mrLightblueColor()
        let topGradient = UIColor(red: 0, green: 0, blue: 0, alpha: 0.60).CGColor
        let bottomGradient = UIColor(red: 0, green: 0, blue: 0, alpha: 0.40).CGColor
