Have removed the unwanted text before the plot making, but not the unwanted text after the plot making. Still to calculate the cumulative frequency. Will do this inside the plotting loop. Only need to do for method 1.
fhdsjkfdjh