Homework for my C# programming studies