experimenting with do and while loops