Chapter 2 app from rails tutorial