implementing .each, also corrected first missing console statement
got each, map, reduce, working