Add 'logic gate' and 'port' class