Matrix Task C# style