Add prototype for creating an event