How Societies Learn