Assigments Functional Programming Principles in Scala