experimenting with while loops