chapter 4 stack