My contribution to RosettaCode.org