A function to add exponentiation

Hi Mike. I added exponentiation. I tested it.