The copy-and-paste codes from http://www.researchgate.net/publication/263083216_Learning_MPCD_and_Other_Things