Assignment 2 - Ellen Hui + Mauricio Molina

A nice thing about Scala is that you don't need all the brackets, this could be a one line function. Though technically correct, this looks very Java-y.