Task 3 of C# training