lecture excercises from "Functional Programming in Scala" course