Use ArrayCollection instead of an array