added Tree and Result Classes, progressed on AICore