C# part I homeworks