   override func eventsForDate(_ date: Date) -> [EventDescriptor] {
     var workingDate = date.add(TimeChunk.dateComponents(hours: Int(arc4random_uniform(10) + 5)))
 
-    if let storedEvents = generatedEvents[date], !storedEvents.isEmpty {
-      return storedEvents
+    if alreadyGeneratedSet.contains(date) {
+      return generatedEvents
     }
 
     var events = [Event]()


              ]

  var generatedEvents = [Date:[EventDescriptor]]()

  var colors = [UIColor.blue,
                UIColor.yellow,

      event.userInfo = String(i)
    }

    alreadyGeneratedSet.insert(date)
    generatedEvents.append(contentsOf: events)
    
    print("Events for \(date)")

    return events
