Source: https://www2.cs.science.cmu.ac.th/courses/204320/lib/exe/fetch.php?media=ch08_eer_model.pdf