added C# COde for assignement