demo for c# soloution