If you post in multiple forums you will find that you may not get an answer in any of them. People do not want to waste time answering a question when it has perhaps already been answered elsewhere.
In short, please do not post the same question in multiple forums until several days have elapsed without getting an answer.
All the code given in this post has been tested and is intended to address the question asked.
Unless stated otherwise it is not just a demonstration.