Made use of 'prompt' properly - so that we need only one generic function to read/handle user input