added demo code