Application of logic gates in real life