added an eventType to the Event class.