Create Part2.scala

This code reflects functional and Object Oriented features of Scala language.