Eval function for nodes, class for creation of truth tables