Sample_app from chapter 3