text: from pydantic import BaseModel
  
  
  class Sensor(BaseModel):
      name: str
  
  
  class Actuator(BaseModel):
      name: str
      sensors: dict = None
  
  
  class Environment(BaseModel):
      name: str
      rooms: dict = None
  
  
  class Room(BaseModel):
      name: str
      size: int
      is_dirty: bool
  