Practice codes for Functional Programming with Scala