create event class