Societies are formed on the basis of justice, says CJP