code for event handling
derive EventDispatcher from EventSubject
EventDispatcher timing
EventDispatcher start and stop functionality