C# exercise 5