uploading plot 2 and the code for it