<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def create_agency(self):
 """Create an agency text file of definitions."""

        agency = self.agency
        links = self.find_table_links()
        definition_dict = self.find_definition_urls(links)
        with open(agency + '.txt', 'w') as f:
            f.write(str(definition_dict))