Principles of macroeconomics