add AST node for class definition