C# example for self-study