creating grammar