add function pointer example