Add environment class and its subclasses