Could you correct the code and format it as a code block?