Assignments - Functional Programing Principles in Scala