Adding get accumulate variant of previous program and bug fix to last
commit