Refactoring: use Struct.

Just refactoring.  10 lines shorter naturally.

PS
Thank you for your easy-to-read demo script!