a factory is used for producing a product