Hive udf creation using scala

hi, please show how to create hive udf using scala on itversity lab