 //
 
 import UIKit
+import CoreMotion
 
 class MotionActivityViewController: UIViewController {
 

        // Pass the selected object to the new view controller.
    }
    */

}


    @IBOutlet weak var confidenceLabel: UILabel!

    let stepCounter = CMStepCounter()
    let pedometer = CMPedometer()
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.stepCounter.startStepCountingUpdatesToQueue(NSOperationQueue.mainQueue(), updateOn: 1, withHandler: { numberOfSteps, timestamp, error in
            if error == nil {
//                self.stepLabel.text = "Steps: \(numberOfSteps)"
            } else {
                print("Step Counter error: \(error)")
            }
        })
        self.startStepCounting()
    }

    override func didReceiveMemoryWarning() {
