Added complete demo code