[#13] usage of inject and Hash.new