SumSquares function in separate file