Create factory_method.rb