sample_app from rubytutorial.org