Logic in Sociology and Ethics