Working without POP for double type of Stack