update linked list example