Class AST working