adding Newton's Method