Functional Programming Principles in Scala Assignments