completed exponentiation code