In-class example code for CS 2114, Summer I 2013