void list_users(const User *curr) {
    // traverse the linked list and print each name using printf
    User *node = curr;
    while (node != NULL) {
        printf("%s\n", node->name);
        node = node->next;
    }
}
traverse a linked list of User objects and print each User's name and a new line