check in code and image for plot 2,3,4