S-Function Builder sample example