For this assignment, I decided to to make everything as one script and use the Source with Echo command to run it all at once. The only issue I had is that mode() does not yield a mode. It returns what storage mode the object uses, so I had to look up how to make a function to calculate the mode.
From there, I was able to call mat and matrange to pull up the tables of all the values.