Updated Grammar.cpp