up to exercise 4
change each to while loop
change each to until loop