YOU SAID:
Bob while Fred had had had had had had had had had had had a better effect on the teacher
INTO JAPANESE
ボブ フレッドが持っていた、いたいたいたいた先生に良い効果を持っていた
BACK INTO ENGLISH
Bob Fred had had the teacher had had positive effects,
You've done this before, haven't you.