Added code for Task1 that prints a menu and allows the user to interact with the list