Added methods for printing AST