Added code and image of plot 2