C# homeworks