create and use a peoplecode function (peoplecode)