Add function in class user