worked through example #2, creating infinite loop