Creating an Event object