Adding Functional Programming Principles in Scala.