Add user input to Problem 4