C# Homework