Finished while loops

Finished while loops