demo app  Chapter 2