How to access array of user defined objects within