started change category logic
Merge pull request #30 from kendallflutey/set-category

started change category logic
refactored for loop to .each