How about using ```each_with_index``` vs. ```map.with_index```?  Maybe I'm more familiar with the former but It reads better in my mind.

Also, please add a space following the comma.