[code] creation of class solenoid