<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_material(self, new_material):
 """Determine whether we already have a material of this name."""

        for material in self.materials:
            if material.name == new_material.name:
                return True

        return False