chapter 3, collections, getting complicated here with reduce, better continue tomorrow