Codes for C# study