scala 99 - flatten