adding ArrayStack from lecture
cleaning up lecture stack