testing with each_with_index