Create class BranchingRule. Still has an error on branching.