add stack method