Convert this into a separate object `Environment` that has `get()` and `set()` defined.