lesson 4 - while loops
merged