gates and functions of logic 1044711