A Decision Structure for Teaching Machines