added solenoid class