Updated linked list with additional functionalities