Ruby script showing usage of map and collect