array of pointer to object