<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_default_masses(self):
 """Set self.masses based on self.numbers and periodic table."""

        self.masses = np.array([periodic[n].mass for n in self.numbers])