Added an Event class to create event objects (using json as a formatter)