Adding exponent program