add function file for orbital example