an example of using a link list