Smarter array of objects