Why would I use a nested while loop