Add Newton method and my function