Sample code for prompting user for input