Code for convergence

Added my convergence code