added baseenum parent to state and event subclasses.