matrix exported as a new class