How to create a user defined scattering function