Finish part B -- definition of the circuit