added ruby difference of squares