Added and tested get_user_selection() function.