<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_global(self, globalvalue):
 """ Add a new global value. """

        assert globalvalue.name not in self.globals
        self.globals[globalvalue.name] = globalvalue