simplified factor tree classes