use `downcase_categories = Hash.new(Array.new)` to set the default value, and remove line 144?