added new demo code