adapted to new grammars (Class Objecttype)