Added user input variable to exercise 3
Completed exercise 3