An example of a linkedlist program