My first Scala code!

Hopefully this fixes my problem.