Converted array to objects