code: def bind(self, func):
          
          if self.__methods__ is None:
              self.__methods__ = {}
          self.__methods__[func.__name__] = BoundFunction(func)
docs: Take a function and create a bound method