all the methods defined in the header file of linked list are now working!