demo_app from rails tutorial book (chapter 2)