Code I used to generate my wife's XMas gift