that works too, but you want a nand gate if you want to make more advanced projects and dont want to have to do and --> not every time