modifying arraylist class