Essays in education and macroeconomics