C# teaching sample codes