Assignements resolution for Coursera Functionnal programming with Scala