Histogram exercise for Ruby from Codecademy