Source: http://www.cs.toronto.edu/~hojjat/148s07/lectures/week3/04mem-model.pdf