factor out .text-block class