exercise 2.33 list manipulators with accumulate