trying linked_list in ruby