Exercises from Scala