Part of C# homeworks