Better solution

Stores objects in array instead of Object ID.