Problem sets in Scala