Working on Newton's method