add linked list exercise