solution to pow