Third homework in C# part 1