I added the attribute function in class user