change code to take user input