Make prediction (ID3) function easier to read.