Exercise 8.5.1: COMPLETED, implemented per RailsCast #270 method