factory system definition world history