Homework code for Coursera programming models course (Fall 2013)