An example for blocks.
Extract common code into new class.