Create the function getEvent(), which returns the next event in the event queue. Implement createEvent(event), such that it adds given events to the event queue.