Created the event class