Code for CS199, Fall 2014.