Structure array instead of pointer array