Foundations of Macroeconomics