added accumulator, added accumulator tests
added accumulator