Demonstrating usage of blocks in Ruby