The Foundations of Smart Investing