A short explanation of the code