Add function pointer example