Changed MyLinkedList to ArrayList