Completed exercise 2. Asks for name in Exercise 3.