while loops up and tested