added the BarChart class and it works