creating instance variable of user class instead of directly referencing the class