Using map() instead of each().