Checking in Richard's decission tree code