Extra Exercises 7. Script flexible for menu items 3 and 4