Source: https://people.cs.umass.edu/~verts/cmpsci201/spr_2004/Lecture_16_2004-03-10_Arrays_and_the_Stack.pdf