Use a utility function to cleanly read input from the user