Renamed TeachingPair to TeachingPattern.