communists believed that socialism could only be achieved through