Working code but my layman approach uses too much code space

Printable View