Complete demo app of chapter 2