Applying Factory and Adapter for Smart Home Devices | CodeSignal Learn