a better solution to problem 3, which converges more quickly.