implemented environment, now needs a unit test