Otto von Bismarck
One way to stop socialism was to make the working class happy. Bismarck did so by introducing many social reforms like public health and accident insurance, as well as pensions for old people. His 's pension scheme was the forerunner of the modern welfare state in Germany, and many other countries started similar systems.