Structuring Mortgages for Macroeconomic Stability