Problem 1 Newtons method