Developed code to generate 4 seperate plots