finished typing out grammar (phase1)