sample application from Rails tutorial