the indented version of the singly linked list