Preparing the grammar. The first part.