Basic Logic Gates with Truth Tables: Tutorial and Examples