Source: http://etsiiab.uclm.es/~jmlova/Archivos/VG/Archivos/EncoreTutorial.pdf