class Node { public T value; public Node next; public Node(T x) { value = x; } }