Creating a Simple Pushdown Stack

Peter mentions that here

I remarked on the extension of an array if you write to a non-existing element in my post