The Three Phases of Socialism