added new ArrayList code