Practice code for c#