All stuff for logic gates