Chapter 3 sample application