Update exponent.cpp