It’s not clear that What and/or which part of the code you don’t understand ?

1 Spice up