Adding the code for the 4 plots and their outputs