Source: http://patricebacchin.fr/images/doc/teach/intro_tdm.pdf