Completed AND gate logic