Loop #2 more scala-y