first version
New grammar management half-finished