A nested formatter class