Pig UDF exercise