added a var for a yes or no answer with "while"