In the new commit,  do like this

(0..6).reverse_each do |i|