Code for STA 601, Duke University, Fall 2012