Scala programming exercises.