<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fromdict(dict):
 """Takes a dictionary as an argument and returns a new Challenge object from the dictionary. :param dict: the dictionary to convert """

        seed = hb_decode(dict['seed'])
        index = dict['index']
        return Challenge(seed, index)