working through  http://quant-econ.net/