exercises from Programming Ruby (Pickaxe book)