added class and square of sums method
first version all tests pass
abstracted creation of array of numbers
version 2 all tests pass array of nums is dry
version 3 all tests pass uses .reduce less lines of code