Added comments showing the expected output.