added power exponentiation method