Decided on while loop: fewer declarations