Correct the `square` function.