Simple logic circuit