Functional Programming Principles in Scala - Coursera exercises