Added rule that recognizes main function to the grammar