BookShop_exercise from chapter 3 of pickaxe book, programming-ruby-1-9-2-0.b2_0