practice rails app - from rails tutorial