This is totally impressive. ChatGPT was able to make elegant version of the code and refine it using my suggestions. Wow. The change proposed by it The proposed solution will not work, but after small fixing ( the result is nice