Using blocks in Ruby - O'Reilly Media