Homework from "Functional Programming Principles in Scala by Martin Odersky" - Coursera Spring 2013