Created entity base class
Added AndGate class