Chart and BarChart is now using new Class function to do inheritance