C# part II homeworks