Write UserService class initial function.