[code] creation of class motor and heater