Grammar modelling dev1