Functional Programming in Scala - sandbox