add exercise 1.16 (iterative exponent)