added basic version of grammar