completes random forest tutorial code