(that is a tables with switches, not on diagram)
I think it might help to read through section 1.4 of our textbook.