Application Of Basic Logic Gates