Notes and code for Econ103