week1: Scala functions