write rememberUserInput method