Adding power function