My C# homework.