My contribution to Rosetta code