Add an Event class to allow easier serializing of events