Add material class.