 import HealthKit
 
 class HealthKitDataProvider: PedometerDataProvider {
-  private typealias HK = HealthKitDataProvider
+  private typealias HealthKit = HealthKitDataProvider
   private static let store = HKHealthStore()
 
   func retrieveStepCountForDateRange(_ interval: DateInterval,

        completion(steps)
    }

    HK.store.execute(query)
  }
}

      let stepCount = HKSampleType.quantityType(forIdentifier: .stepCount)
    else { return }

    if HealthKit.store.authorizationStatus(for: stepCount) != .sharingAuthorized {
      HealthKit.store.requestAuthorization(toShare: nil, read: [stepCount]) {
        (success: Bool, error: Error?) in
          guard error == nil && success else {
            print("Error getting HealthKit access: \(String(describing: error))")
