Added each.with_index method