Solution by Jacques Guinnebault.
