Figured out how to transform the array of objects into a different format while keeping the data the same