Working on ruby linked list