Changed List[] variable to ArrayList[] 
(That's the only kind of list we
want to use in here)