Text this: Control of a robot arm using iterative learning algorithm with a stopping criterion