help me rewrite my long code.

Printable View