write a decision tree class for business scalability