sample app for chapter 3 and above