program demonstrating a has_many :through relationship