Created an addEvent method with only an Event as an argument