Here 3 Input AND Gate and 3 Input OR Gate  is Implemented by creating it's Sub-circuit.