Based upon an example by Daniel Lorch