added factors.rb