Completed plot2 for assignment