Made changes to the array list class