There are three gates. Each gate can be opened or closed depending on the three logic inputs: (a, b, c). Gate open logic=1, gate close= logic 0. Design a logic circuit so that no adjacent gates or outputs (x, y, z) are open at the same time. And make sure the circuit contains one more output, an alarm that at any time closes all the gates and signals an alarm. Circuit should be easily expandable. There should be 8 possible outputs.