storing the user input to a varible