Grammar connected to model