Explain this code.