Code for studying Ruby blocks