How a good factory works