Additional class implementations

First implementations of Chart, ParseState and StateSet classes