<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def chkaddhdr(self, line):
 """If this line contains desired header info, save it."""

        mtch = self.cmpline.search(line)
        if mtch:
            self.gpadhdr.append(mtch.group(1))