a factory is used for producing things