Significantly improved challenge 39 based on challenge 40.
Completed set 40