Now both classes Material and MaterialHandler inherit from a common interface AbstractMaterial.