add FunctionalProgramming Principles In Scala Assignment