Added rules to pow operation