moving linked list out so it can be inherited