how to make this 10 lines more elegant?

Printable View