the provided code `styles[(styles.length - 1) / 2] = "Classics";` will replace the last item instead of the middle one. in order to fix that we need to change code like this : `styles[Math.floor((styles.length - 1) / 2)] = "Classics";`