Data Class and BarGraph method