Replaced mkString with foreach(println)
Replaced mkString with foreach(println)