add deferred  demo code.