Programming exercises resolved for the Coursera course Functional Programming Principles in Scala