Implement a demo with yield.