change data structure type for: from LinkedList to ArrayList