Added code for Demo1