How to use "block" and "yield" in Ruby.