Solutions for https://class.coursera.org/proglang-2012-001/ .