Update sum of square example.