added basic parse tree code