Here is my original version of the solution:
...and here is another version, which phoebe sent to me on Twitter: