Completed the writing of the grammar rules