Implemented Handler, EventGenerator, and Event classes.