Added test and example files for the accumulate problem