first shot at defining the grammar