Problem 14 spacing fixed (Scala)