functional sets assignment in the Functional Programming Principles in Scala course on coursera.org