Changing Mat super class