Plotting error in function of number of iterations

Just to implement the idea behind the code.