while is actually a special expression, and fixing example to not loop infinitely