modified plot 1 and 2 to not be histogram
completed plot4