The theory of social justice and its implications