C# fundamentals - homework