The rise of capitalism and communism