Teaching a humanoid robot to draw 'Shapes'