Changed sum_init() to take a seed value as an arg instead of always