adds a function pointer example