Friedrich Engels, 1840