simple ch 7 "while" problems