added getEventsOfAUser method