Lectures exercises-Functional Programming in Scala