learning to encapsuing to encapsulate classes for linked lists