Scala course assigment "streams"