coding kata exercises in Scala