finished sums squared difference problem