Made Material a real polymorphic class.