Fixed creation of parse tree to match Mak's slide