and operation on Logic class implemented