Good Thinking: The Foundations of Probability and Its Applications