add to_json method
reorganise code and add bar_chart
require bar_chart.rb
typo
add bar chart spec
delegate methods to the hash
allow chart title to be passed into constructor
add some documentation