Add material class. Implement object class.