My first Scala exercise!