Implemented basic parse tree construction