State socialism transformed desperately poor countries into modernized societies in which everyone had enough food, clothing, and shelter; where elderly people had secure pensions; and where all children (and many adults) went to school and no one was denied medical attention.