added environment class