Code, Event class