implemented functions of User class