added more demo code