Adding class def for singly list node