practical question for stack operation implementation