Trying to understand decorators