Exploring ways to transform array elements to objects.