This is a starter circuit you should use to complete you E40M useless box prelab. The two logic outputs create the "forward" output (top) and the "reverse" output (bottom), and they are both initially set to Gnd. The + terminal of the "motor" is the top of the 100ohm resistor, and the - terminal is the two diodes. Connect the 4 MOS transistors to the "motor" and power supply so the green diode lights when the motor is going forward, and the red lights lights when it is going reverse.