doWhile is now a while loop