completed base framework for barChartModel including delegates and two examples