A version of a simple linked list in Ruby