Executable constructs linkedlist, and is able to display first four and last four elements of list