Here is my original version of the solution:
...and here is another version, which Susu Smitzh sent to me on LinkedIn: