exercise with exponent functions