Implemented getAllEvents