Added cv plot code