change iterator in factorial.rb