Improve code, output, and styling.