Capitalism, socialism and democracy