Added more code for the bar graphs ready for Testing