Again following the sample_app from hartl ebook