Using a while loop for prompting