Implementation of http://www.wiredtothemoon.com/2012/12/12-tdds-of-christmas idea