Implemented exponentiation