Use of blocks and scope