6. Completing the square