refactor Stack
Merge pull request #3 from philipqnguyen/stack

refactor Stack