My attempt to solve exercises from the "Functional Programming in Scala" book.