SMS: Recursive macroeconomic theory