working out the grammar