class diag