on 1.2.2 example: counting change