Scala Code, Assignment 1 Part V

Scala code