The Representative Agent in Macroeconomics