<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def com(self):
 """the center of mass of the molecule"""

        return (self.coordinates*self.masses.reshape((-1,1))).sum(axis=0)/self.mass