Homework - exponent function