Ended implementation of barPlot class