everything works the same, all arrays are now just arraylists