Create logicgate.cpp