Implemented initial methods in linked list