added a loop to listen for user input