use each.with_index
Merge pull request #1 from Konboi/loop-use-each-with-index

use each.with_index