Code and png file for plot-2