creating control environment class