Some fun with Scala