I would rename `obj` to `cls`.