When posting code, please use the highlight tags to preserve formatting.

What does this code do? What are you confused about? Where are you stuck?