Problem 7, C#