My own version of the stack data structure