Implemented arraylist methods