Changed ++ to use foldLeft, because it's more "look at me, I know Scala!" that way.