When would you use the block pattern vs creating a new function?