Helper refactor

Refactoring class method into object oriented method, allowing a unit test of the model. You can run the test with rake minitest:models