Assignments: Functional Programming Principles in Scala