More explanation of what is happening in the example