Completed plot4 for assignment