Made the array store pointers to its objects instead of the objects directly.