format classes matrix and statistical