<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def AddFrequencyObject(self, frequency, problem_reporter):
 """Add a Frequency object to this trip's list of Frequencies."""

    if frequency is not None:
      self.AddFrequency(frequency.StartTime(),
                        frequency.EndTime(),
                        frequency.HeadwaySecs(),
                        frequency.ExactTimes(),
                        problem_reporter)