Title: Foundations of Science with Applications in Sociology and Medicine