added support for parsing class definitions