added grammar templates