started coding nonlinear solver