chapter 2 stack operation