Task 3 : Implemented convergence