runningkey: sum piece generator (with simple test case)