Dynamic Construction of Belief Networks