Added base of barchart class