I want to move a variable from local scope to object level. The new code should use self.user and not user like before:
self.user
user
class Foo(objec