Assignments for Functional Programming Principles in Scala