functions.scala