A Theory of Socialism and Capitalism: Economics, Politics, and Ethics