-moved code into RMD doc, finished take-home exercise