Teaching Machines through Reinforcement Learning