code for STAT 662, from fall of 2014