Getting started assigment in Scala