Working demo code.

Working demo code.