Adding some more ways to iterate in Ruby