Scala for the impatient exercise