Take a real steps to calculateNewton function and others who needes.