sumSlice method is working.