177 A solenoid, S, is to turn on when count C goes up to 22, and when count D goes down from 37 to 0, and when count E goes up to 8. Furthermore, if count F goes down from 17 to 0 at any time, the solenoid is to be kept from operating. One stop button resets the entire process, including the solenoid being off.