implemented the plot1
implemented the plot2
implemented the plot3
implemented the plot4