Implemented array list (not working).