examples using the grammar attribute