My self assigned practice on Scala