Added Jacobi method