linked list ruby class