Added solenoid functionality
removed unnecessary class.