teaching loop