got secant method working