How the economic machines of the past worked