A faster way to teach a robot