<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ages(self):
 """The age range that the user is interested in."""

        match = self._ages_re.match(self.raw_fields.get('ages'))
        if not match:
            match = self._ages_re2.match(self.raw_fields.get('ages'))
            return self.Ages(int(match.group(1)),int(match.group(1)))
        return self.Ages(int(match.group(1)), int(match.group(2)))