Some changes from rails tutorial chapter 4.