<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_var(self, name):
 """ Returns the variable set with the given name. """

        for var in self.vars:
            if var.name == name:
                return var
        else:
            raise ValueError