notes and code used during Quant Gen course in fall of 2013