Programming Assignment for Coursera's Functional Programming Principles in Scala