Added each_with_index method