Coursera - Functional Programming Principles in Scala by Martin Odersky - example assignment