exercices of Coursera's functional programming principles in Scala course