<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def balance(self):

 """Adds a corresponding empty attribute or null geometry record depending
 on which type of record was created to make sure all three files
 are in synch."""

        if len(self.records) > len(self._shapes):
            self.null()
        elif len(self.records) < len(self._shapes):
            self.record()