Sum task implementation.