rebuilding rails chapter 4