Teacher and student matrices class