added function to take in user input