more coding on linked list