 
 extension ViewController {
     @objc
-    func reminders(authorized reminders: Reminders) {
+    func eventsAuthorizedForReminders(events: Events) {
         print("Reminders access is authorized.")
         
         fetchCalendars()
     }
     
     @objc
-    func reminders(denied reminders: Reminders) {
+    func eventsDeniedForReminders(events: Events) {
         print("Reminders access is denied.")
     }
     
     @objc
-    func reminders(reminders: Reminders, status: RemindersAuthorizationStatus) {
+    func events(events: Events, status: EventsReminderAuthorizationStatus) {
         print("Reminders status:", remindersStatusToString(status))
     }
     
     @objc
-    func reminders(reminders: Reminders, createdCalendar calendar: EKCalendar?, error: Error?) {
+    func events(events: Events, createdCalendar calendar: EKCalendar?, error: Error?) {
         print("Reminders created calendar:", calendar ?? "", error ?? "")
     }
     
     @objc
-    func reminders(reminders: Reminders, removedCalendar calendar: EKCalendar, error: Error?) {
+    func events(events: Events, removedCalendar calendar: EKCalendar, error: Error?) {
         print("Reminders removed calendar:", calendar, error ?? "")
     }
     
     @objc
-    func reminders(reminders: Reminders, createdReminder reminder: EKReminder?, error: Error?) {
+    func events(events: Events, createdReminder reminder: EKReminder?, error: Error?) {
         print("Reminders created reminder:", reminder ?? "", error ?? "")
     }
     
     @objc
-    func reminders(reminders: Reminders, removedReminder reminder: EKReminder, error: Error?) {
+    func events(events: Events, removedReminder reminder: EKReminder, error: Error?) {
         print("Reminders removed reminder:", reminder, error ?? "")
     }
 }


extension ViewController {
    fileprivate func requestRemindersAuthorization() {
        reminders.requestAuthorization { (status) in
            print("Reminders request authorization:", remindersStatusToString(status))
        }
    }

        
        let oneYearFromNow = calendar.date(byAdding: oneYearFromNowComponents, to: Date())!
        
        events.fetchIncompleteReminders(starting: oneDayAgo, ending: oneYearFromNow) { (reminders) in
            print(reminders)
        }
        
        events.fetchCompletedReminders(starting: oneDayAgo, ending: oneYearFromNow) { (reminders) in
            print(reminders)
        }
    }
