finished rails_primer chapter 10