**Describe the change:** Changing `TempDir` to be a func rather than var ensures that the value of TempDir remains a constant and cannot be accidentally changed.
Describe the change:
Changing
TempDirto be a func rather than var ensures that the value of TempDir remains a constant and cannot be accidentally changed.