Element completition: logic gates