The Macroeconomics of Heterogeneous Agents (2 º Sem 2018/2019)