Sample application chapter 3