added Generics to ArrayList