sample_app from ruby tutorial