added accumulate exercise
all tests passing