explaining the outputs from the code