Notes and code for the second part of Econ 722 at UPenn