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

def add_flag_values(self, entry, flag):
        ''' Adds flag value to applicable compounds '''
        if flag in self.flags:
            self.flags[flag].append(entry)