Refactored Sumit's code so that the Demo class is public. It now works.