sample app from rails tutorial