implemented a linked list for integers