Simple linked list in ruby