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

def addhash(frame,**kw):
    '''
    helper function to add hashes to the given frame
    given in the dictionary d returned from firsthash.

    Parameters:
    -----------
      frame :  frame to hash.

    Keywords:
    ---------
      same as genhash
    
    Returns frame with added hashes, although it will be added in
    place.
    '''
    hashes = genhash(frame,**kw);
    frame['data'] = rfn.rec_append_fields(
        frame['data'],'hash',hashes);
    return frame;