Added an Event class.