visitor pattern cannot be reached the thermostat might return the actual temperature it is reading and none if it is offline the front door lock is similar to the lightswith being locked unlockedand - error the coffee machine has states for erroroffonbrewingwaitingand heating using integers from - to respectively the temperature regulator has states for heatingcoolingonoffand error the clock either returns none if the device is disconnected or the time as python time value the classes involved with concrete instances will look something like thisimport random class light(object)def __init__(self)pass def get_status(self)return random choice(range(- , )class thermostat(object)def __init__(self)pass def get_status(self)temp_range [ for in range(- )temp_range append(nonereturn random choice(temp_rangeclass temperatureregulator(object)def __init__(self)pass def get_status(self)return random choice(['heating''cooling''on''off''error']class doorlock(object)def __init__(self)pass def get_status(self)return random choice(range(- , )