Modified the attributes property to be an array instead of an object