ArrayList class updated