Changed this to be a Scala worksheet and finished the third problem.