This is a really nice solution and working. I tested the C# class.