add some demo code written a long time ago.