3-Way Logic Matrix