created array of objects with elements and amount