Task 6 of C# training