starting to write hessian func