Updating the factor.rb factory