Elementary Logic Gates