Complete defix, sumSlice, and square methods