C# homeworks - part II