the economy of early cities and villages was based on this