Some practice in C#