an example of a linked list using pseduo classsical construction method