added the logic gates as circuits