Added demo code
Have written behaviour of this sytem