Reaction mechanisms of more complex substances can be clearly outlined and understood using the simple idea of functional groups and intermolecular bonding studied in the higher course
It appears in the above mechanism that there are two different reagents but in reality it is the same reagent and therefore allows production of the ether