     lazy var bluetoothManager:CBPeripheralManager = {
         return CBPeripheralManager(delegate: self, queue: nil)
     }()
+    
+    lazy var motionManager:CMMotionActivityManager = {
+        let ma = CMMotionActivityManager()
+        return ma
+        }()
+    
+    var motionPermissionStatus: PermissionStatus = .Unknown
 
     // internal state and resolution
     var configuredPermissions: [PermissionConfig] = []

        bluetoothManager.stopAdvertising()
    }
    
    // MARK: finally, displaying the panel

    @objc public func show(authChange: ((finished: Bool, results: [PermissionResult]) -> Void)? = nil, cancelled: ((results: [PermissionResult]) -> Void)? = nil) {

        case .Photos: return "Photos"
        case .Reminders: return "Reminders"
        case .Bluetooth: return "Bluetooth"
        case .Motion: return "Motion"
        }
    }
    
