Using designated initializer for the bar chart example code