Social inequality and caste systems