Using a while loop for prompting
Merge pull request #1 from esila/master

While loop change!