Modified abstract stack.