Learning scala, simple excercises