squares_of_sum method refactoring - Issue #3