Imitation of Scala