my learning of Scala