formatter: put it in its own class