updating the grammar class ...