Created an Event class with get and set methods.